<?php

class FolderController extends Zend_Controller_Action
{
	protected $_datas;
	
	public function init()
    {
		$this->datas = new CMS_PageReader();
    }

    public function folderAction()
    {
		$this->view->assign('title', 'My 1st List view');
		
		$id =  $this->_getParam(1) ;
		$sel = $this->datas->select()->where('page_uid_htmlpath=\'/'.$id.'.php\'');
		$res = $this->datas->fetchAll($sel);
		$this->view->assign('datas', $res->toArray());
		$this->view->assign('id', $id);
    }
	
	public function testAction (){
		$this->view->assign('title', 'My 1st List view');
	}


}

